#include "mythread.h"
#include <QString>
#include <QDebug>

MyThread::MyThread()
{
    stopped = false;
}

void MyThread::run()
{

    qreal i = 0;
    while(!stopped)
        qDebug() << QString("in MyThread:%1").arg(i++);
    stopped = false;

}

void MyThread::stop()
{
    stopped = true;
}
